﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - Play Games!</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="@Url.Content("http://code.jquery.com/jquery-1.9.1.js")" type="text/javascript"></script>
</head>
<body>
    <div id="body">
        <div id="main-content">
            @RenderSection("featured", required: false)
            <nav>
                <ul class="menu">
                    <!-- Just putting links to all the views until we get the database working and such. -->
                    @if(Request.IsAuthenticated)
                    {
                    <li>@Html.ActionLink("MainMenu", "MainMenu", "Home")</li>
                    <li>@Html.ActionLink("Profile", "ViewProfile/" + Html.Encode(User.Identity.Name), "User")</li>
                    }
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li class="login">@if (Request.IsAuthenticated)
                                      {
                                            @Html.Encode("Logged in as: ")
                                            @Html.Encode(User.Identity.Name)
                                            @Html.Encode("  -  ")
                                            @Html.ActionLink("Logout", "Logout", "User")
                                      }
                                      else
                                      {
                                            @Html.ActionLink("Login", "Login", "User")   
                                      }
                    </li>
                </ul>
            </nav>
            <section class="render">
                @RenderBody()
            </section>
        </div>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - Throne of Games</p>
            </div>
        </div>
    </footer>
    @Scripts.Render("~/Scripts/script.js")
    @RenderSection("scripts", required: false)
</body>
</html>
